package com.fhz.day005;

import android.os.Bundle;

import androidx.fragment.app.Fragment;

import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;


public class ContentFragment extends Fragment {



    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container,
                             Bundle savedInstanceState) {
        View inflate = inflater.inflate(R.layout.fragment_content, container, false);

        TextView textView = inflate.findViewById(R.id.fg_tv);
        Bundle arguments = getArguments();
        if(arguments != null){
            String inputText = arguments.getString("inputText");
            textView.setText(inputText);
        }
        return inflate;
    }
}